clear all;

current_connection=tcpip('0.0.0.0',31416,'NetworkRole', 'server');
fopen(current_connection);

while(1)
%try
    disp('now a new loop');
    [data,]=fscanf(current_connection);
    disp(data);
end

fclose(current_connection);